#ifndef MAP_H
#define MAP_H

#include "config.h"
class Map: public QObject,public QGraphicsPixmapItem
{
public:
    explicit Map(QObject *parent = nullptr);
    ~Map();
    QPixmap background_1;
    QPixmap background_2;
    int background_1_y;
    int background_2_y;
    int background_speed;
    QGraphicsPixmapItem * background_item_1;
    QGraphicsPixmapItem * background_item_2;

    void set_pos();
    void set_item(QGraphicsPixmapItem *background_item_1,QGraphicsPixmapItem *background_item_2);
    void picture_choose(int path);
};

#endif // MAP_H
